Skip to content

docs(skill): clarify bsk evaluate exit-code vs --json .ok semantics - #151

Merged
iuyo5678 merged 1 commit into
Tencent:mainfrom
xiyanjun:docs/evaluate-json-ok
Aug 28, 2026
Merged

docs(skill): clarify bsk evaluate exit-code vs --json .ok semantics#151
iuyo5678 merged 1 commit into
Tencent:mainfrom
xiyanjun:docs/evaluate-json-ok

Conversation

@xiyanjun

Copy link
Copy Markdown
Contributor

What

Addresses the discoverability gap raised in #133.

bsk evaluate's exit code reflects RPC success only, not JS success. The structured --json output already returns ok / value / error, but SKILL.md only said "JS throw → stderr, exit 0", which led agents to misread exit 0 as "JS succeeded".

Change

Two small doc clarifications, applied to both skill/SKILL.md and crates/bsk-cli/skill/SKILL.md (kept in sync):

  • Command reference (Scripting & timing): note that programmatic callers should use --json and check .ok to detect JS errors.
  • Exit-code table (0 row): point evaluate callers to --json .ok to distinguish JS success from RPC success.

Documentation only — no behavior change.

The exit code reflects RPC success only, not JS success. Document that programmatic callers must use --json and check the .ok field to detect JS errors. Addresses the discoverability gap raised in issue Tencent#133.

@iuyo5678 iuyo5678 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@iuyo5678
iuyo5678 merged commit 7163f2f into Tencent:main Aug 28, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants